class Solution {
    public int translateNum(int num) {
        if(10 > num) {
            return 1;
        }
        char[] arr = String.valueOf(num).toCharArray();
        if(2 == arr.length && num > 25) {
            return 1;
        } 
        //1 2 3 5
        int fib0 = 1;
        int fib1 = 1;
        for(int i = 1;i<arr.length;i++) {
            int ret = (int)(arr[i-1] - '0') * 10 + (arr[i] - '0');
            if(ret <= 25  &&  ret > 9) {
                int tem = fib1;
                fib1 = fib1 + fib0;
                fib0 = tem;
            }else {
                fib0 = fib1;
            }
            System.out.print(fib1);
        }
        return fib1;
  
    }
}